﻿using KinonekoSoftware.CodariaDB.Documents.DataParts.Modules.RVE;

namespace KinonekoSoftware.CodariaDB.Documents.DataParts.Modules
{
    public sealed class Element_Text : ModuleElement, IHybridModuleBlock, IMetadataSupport, IMainVisualRowElement
    {
        public string Fallback { get; set; }
        public string Value    { get; set; }
        public string Suffix   { get; set; }
        public string Metadata { get; set; }


        public override ModuleElement Clone() => new Element_Text
        {
            Id          = Id,
            Title       = Title,
            Description = Description,
            Suffix      = Suffix,
            Index       = Index,
            Metadata    = Metadata,
            Fallback    = Fallback,
            Value       = Value,
        };

        IHybridModuleBlock IHybridModuleBlock.Clone() => (IHybridModuleBlock)Clone();

        IMainVisualRowElement IMainVisualRowElement.Clone() => (IMainVisualRowElement)Clone();
    }
}